﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>登录页2</title>
    <link rel="stylesheet" href="../src/css/layui.css">
    <link href="myCss/LoginStyle2.css" rel="stylesheet" />
</head>
<body>
    <form class="layui-form" action="" method="post">
        <div class="container">
            <div class="layui-word-aux">
                <button class="close" title="关闭">X</button>
                <!--<img id="logoid" src="06.png" height="35">-->
                <span class="layui-form-span">用户登录</span>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密 &nbsp;&nbsp;码</label>
                <div class="layui-input-inline">
                    <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
                <!-- <div class="layui-form-mid layui-word-aux">辅助文字</div> -->
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">验证码</label>
                <div class="layui-input-inline">
                    <input type="text" name="title" required lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input verity">
                </div>
                <!-- <div class="layui-form-mid layui-word-aux">辅助文字</div> -->
            </div>
            <!--
                    <div class="layui-form-item">
                                <label class="layui-form-label">记住密码</label>
                                <div class="layui-input-block">
                                  <input type="checkbox" name="close" lay-skin="switch" lay-text="ON|OFF">
                                </div>
                     </div> -->

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">登陆</button>
                </div>
            </div>
            <a href="" class="font-set">忘记密码?</a>  <a href="" class="font-set">立即注册</a>
        </div>
    </form>
    <script src="../src/layui.js"></script>
    <script>
        layui.use(['form', 'layedit', 'laydate'], function () {
            var form = layui.form
                , layer = layui.layer
                , layedit = layui.layedit
                , laydate = layui.laydate;
            form.on('submit(demo1)', function (data) {
                layer.alert(JSON.stringify(data.field), {
                    title: '最终的提交信息'
                })
                return false;
            });
        });
    </script>
</body >
</html >
